library(tidyverse)
library(magrittr)
library(sf)
library(mapview)Patrones Puntuales Espaciales
Paquetes:
Some DB:
https://www.kaggle.com/datasets/blackecho/italy-earthquakes
https://www.kaggle.com/datasets/sobhanmoosavi/us-accidents
https://www.kaggle.com/datasets/START-UMD/gtd
colombia <- st_read("Maps_Shapes/MGN_DPTO_POLITICO.shp")Reading layer `MGN_DPTO_POLITICO' from data source
`/home/sr/UN/2023-1/Spatial_Statistics/Project/Project_Spatial_Point_Pattern/spatial_statistics_project-Spatial-Point-Patterns/Maps_Shapes/MGN_DPTO_POLITICO.shp'
using driver `ESRI Shapefile'
Simple feature collection with 33 features and 9 fields
Geometry type: MULTIPOLYGON
Dimension: XY
Bounding box: xmin: -81.73562 ymin: -4.229406 xmax: -66.84722 ymax: 13.39473
Geodetic CRS: MAGNA-SIRGAS
border_col <- st_coordinates(colombia$geometry)db <- read.csv("Data/Colombia_Terrorism.csv")
coord <- data.frame(x=as.numeric(db$longitude), y=as.numeric(db$latitude))mapview(colombia, legend=F, col.regions="gray") +
mapview(coord, xcol="x", y="y")